<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />

{$xajax->printJavascript()}
{literal}
<script type='text/javascript'>
	/* <![CDATA[ */
	window.onload = function() {
		// call the helloWorld function to populate the div on load
		{/literal}
		{
		$rqstStat->printScript()
		};
		{literal}
	}
	/* ]]> */
</script>
{/literal}


<!-- link calendar files  -->
{include file="tigra/calendar_db.js"}	
{include file="tigra/calendar.css"}
		
<title>{$page_title}</title>
<meta name="keywords" content="newarlig, süperlig, superlig, newarneyok, lig, tahmin, bahis, futbol" />
<meta name="description" content="newarLig - newarneyok grubu futbol tahmin oyunu" />	  
<meta name="author" content="A. Sari @ newarneyok@yahoogroups.com" />
<link href="{$url_tpl_home}/{$template}/default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="page">
	<div id="sidebar">
		<div id="logo">
			<h1><a href="{$url_home}"><br/>newar'Lig</a></h1>
			<h2><a href="http://groups.yahoo.com/group/newarneyok/">By newarneyok<sup>&trade;</sup></a></h2>
		</div>
		<!-- end header -->
		<div id="menu">
			<ul>
				<li class="first"><a href="{$url_home}">{$l10n->get("Ana Sayfa")}</a></li>
				{if $my_session->logged_in}	
					<li><a href="process.php">Cikis</a></li>
					{if $my_session->isAdmin()}
						<li><a href="leagues.php">Ligler</a></li>
						<li><a href="teams.php">Takimlar</a></li>
						<li><a href="games.php">Maclar</a></li>
						<li><a href="games.php?action=resultView">Sonuclar</a></li>		
						<li><a href="games.php?action=calculateAll">Puan Hesapla</a></li>							
					{/if}
					<li><a href="useredit.php">Kullanici Bilgileri</a></li>
					<li><a href="games.php?action=pView">Tahminlerim</a></li>
				{/if}
				<li><a href="http://code.google.com/p/newarlig/issues/list" target="_blank">{$l10n->get("Hata ve Istekler")}</a></li>
			</ul>					
		</div>
		<!-- end menu -->
		{if !$my_session->logged_in}
			<div id="login">
				<h2 class="title1">{$l10n->get("Login")}</h2>
					<form id="form1" action="process.php" method="post">
						<input type="hidden" name="sublogin" value="1" />
						<fieldset>
							<label for="user">Kullanici:</label>{$my_form->error("user")}
							<input id="user" type="text" size="8" name="user" value='{$my_form->value("user")}'/>
							<label for="pass">Sifre:</label>{$my_form->error("pass")}
							<input type="password" size="8" name="pass" id="pass"/>
							<input type="submit" value="Giris" id="inputsubmit">
							<input type="checkbox" id="remember" name="remember" {if $my_form->value("remember") != ""}checked="checked"{/if}/>
							<label for "remember">Beni hatirla</label>
							<p><a href="forgotpass.php">Sifremi unuttum</a><br />
								<a href="register.php">Kayit olun</a></p>
						</fieldset>
					</form>
			</div>
		{/if}					
		<!-- Twitter badge -->
		{literal}
		<div id="twtr-search-widget"></div>
		<script src="http://widgets.twimg.com/j/1/widget.js"></script>
		<link href="http://widgets.twimg.com/j/1/widget.css" type="text/css" rel="stylesheet">
		<script>
		new TWTR.Widget({
		  search: '"newarLig" OR "newarlig" OR to:newarlig',
		  id: 'twtr-search-widget',
		  loop: true,
		  title: 'ligimiz hakkinda neler söyleniyor...',
		  subject: 'newarLig',
		  width: 240,
		  height: 200,
		  theme: {
		    shell: {
		      background: '#85C329',
		      color: '#ffffff'
		    },
		    tweets: {
		      background: '#ffffff',
		      color: '#444444',
		      links: '#1985b5'
		    }
		  }
		}).render().start();
		</script>
		{/literal}
		<!--  Twitter end -->		
		
		
	</div>
	<!-- end sidebar -->
	
	<div id="content">
		<div><img src="{$url_tpl_home}/{$template}/images/estonya.jpg" alt="" width="740" height="220" /></div>
		{$body}
	</div>
	<!-- end content -->
	<div style="clear: both;">&nbsp;</div>
</div>
<!-- end page -->
<div id="footer">
	<p id="legal">
		Copyright &copy; 2008 newar'Lig ({$version}.{$revision}). 
		All Rights Reserved. 
		Designed by <a href="http://groups.yahoo.com/group/newarneyok/">newarneyok<sup>&trade;</sup></a>.		
	</p>
	<p id="links"><a href="#">Privacy Policy</a> | <a href="#">Terms of Use</a>
	</p>
</div>
</body>
</html>

